﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Dapper_Core.Table
{
    public class PersonalAccount_AlterEmailAddress : BaseModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        [Required]
        public string Id { get; set; }
        /// <summary>
        /// 域账号
        /// </summary>
        public string UserCode { get; set; }
        /// <summary>
        /// 域账号中的sAMAccountName属性值
        /// </summary>
        public string SAMAccountName { get; set; }
        /// <summary>
        /// 修改前的EmailName
        /// </summary>
        public string OldEmailName { get; set; }
        /// <summary>
        /// 修改后的EmailName
        /// </summary>
        public string NewEmailName { get; set; }
        /// <summary>
        /// 对外显示名（不能是中文）
        /// </summary>
        public string SimpleDisplayName { get; set; }
        /// <summary>
        /// 代理人（即本条记录的创建人）
        /// </summary>
        public string ProxyMan { get; set; }
        /// <summary>
        /// Sys_Department的主键
        /// </summary>
        public string DeptId { get; set; }
        /// <summary>
        /// 一级部门Code
        /// </summary>
        public string FirstDeptCode { get; set; }
        /// <summary>
        /// 二级部门Code
        /// </summary>
        public string SecondDeptCode { get; set; }
        /// <summary>
        /// 三级部门Code
        /// </summary>
        public string ThirdDeptCode { get; set; }
        /// <summary>
        /// ThirdDeptCode对应的部门名称（一二三级DeptCode均不相等时表示三级部门名称，仅二三级DeptCode相等时表示二级部门名称，一二三级DeptCode均相等时表示一级部门名称）
        /// </summary>
        public string DeptName { get; set; }
        /// <summary>
        /// ThirdDeptCode对应的部门经理（一二三级DeptCode均不相等时表示三级部门经理，仅二三级DeptCode相等时表示二级部门经理，一二三级DeptCode均相等时表示一级部门经理）
        /// </summary>
        public string DeptManager { get; set; }
        public int? IsSync { get; set; }
        /// <summary>
        /// 可读的流程编号
        /// </summary>
        public string FlowNo { get; set; }
    }
}
